<ion-view class="clients" title="添加客户">


	<ion-nav-buttons side="right">

		<button class="button button-clear button-calm " ng-click="confirmSelected()">确定</button>

	</ion-nav-buttons>

	<ion-header-bar class="bar-subheader">
		<div  class="search-width">
			<label class="item item-input" >
				<i class="icon ion-search placeholder-icon"></i>
				<input type="text" placeholder="客户名称 分类 地区" ng-model="searchClient">
				<i class="icon ion-android-close placeholder-icon" ng-show="searchClient" on-tap="clearSearch()"></i>
			</label>
		</div>
	</ion-header-bar>

	<ion-content scroll="false">
		<chat-scroll delegate-handle="chatScroll" quick-cambers="quickCambers" active-camber="activeCamber">

			<div class="item item-checkbox item-checkbox-right"
				 ng-repeat="item in contacts|filter:searchClient"
				 ng-style="{'height': getItemHeight(item) + 'px'}"
				 ng-class="{'item-divider': item.isLetter}"
				 ng-hide="item.isLetter==false">

				{{(item.letter) || (item.name)}}

				<label class="checkbox checkbox-calm">
					<input style="margin-right:10px" type="checkbox" ng-show="item.name"
						   id="selected" name="selected" ion-stop-event ng-checked="isSelected(item.id)" ng-click="updateSelection($event, item.id)">
				</label>
			</div>

		</chat-scroll>

	</ion-content>

</ion-view>
